package com.bawei.park2211a.polling

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.PollingEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class PollingViewModel @Inject constructor(var apiService: ApiService): BaseViewModel(){
    var pollingSuccess=MutableLiveData<MutableList<PollingEntity>>()
    fun pollingList(){
        httpRequest({apiService.polling()},{pollingSuccess.postValue(it)})
    }
}